<template>
    <div>兄弟组件2,接收到的数据是:{{ message }}</div>
</template>

<script>
import bus from "@/utils/eventBus";

export default {
    components: {},
    props: {},
    data() {
        return { message: "" };
    },
    computed: {},
    methods: {},
    created() {
        bus.$on("sendBrotherMessage", (res) => {
            this.message = res;
        });
    },
    mounted() {}
};
</script>
<style scoped></style>
